<%@page import="com.framework.entity.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<title>累计积分</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<jsp:include page="/jsp/inc.jsp"></jsp:include>
</head>
<body>
<div class="ttcodetop">
	<div class="totaltxt">当前累计积分</div>
	<div class="totalnum">${pbaseUser.integralTotal.intValue()}<span class="txtfen">&nbsp;分</span></div>
	<div class="" onclick="toIntegralMall();">
		<button type="button" class="longbtn btn-blue" id="poptip">积分兑换商品</button>
	</div>
</div>
<div class="coderecordtitle">累积积分记录</div>
<ul class="coderecordlist">
	<c:choose>
		<c:when test="${not empty intralList}">
			<c:forEach items="${intralList}"  var="obj" varStatus="vs">
				<li>
					<div class="bigtitle">${obj.sourceMsg}</div>
					<div class="codelistdown">
						<div class="fl-l time">${obj.createTime}</div>
						<div class="fl-r pluscode">+${obj.integral}积分</div>
						<br class="clear"/>
					</div>
				</li>
			</c:forEach>
		</c:when>
	</c:choose>
</ul>
<script>
	//商城列表
	function toIntegralMall(){
        window.location.href='${pageContext.request.contextPath}/goods/toGoodsList.ac';
	}
</script>
</body>
</html>
